#!/bin/bash

exec_path=$(dirname "$0")

cd ${exec_path}

mkdir -p bin data conf script

# https://github.com/oliver006/redis_exporter/releases/download/v1.71.0/redis_exporter-v1.71.0.linux-amd64.tar.gz

wget https://github.com/oliver006/redis_exporter/releases/tag/v1.71.0/redis_exporter-v1.71.0.linux-amd64.tar.gz

if [ -f redis_exporter-v1.71.0.linux-amd64.tar.gz ];then
    tar -zxvf redis_exporter-v1.71.0.linux-amd64.tar.gz -C ./bin
fi

